package cn.xxi.ai.application.entity;

import cn.xxi.ai.application.dto.Text;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.Data;

@Data
@JsonTypeInfo(
    use = JsonTypeInfo.Id.NAME,
    include = JsonTypeInfo.As.PROPERTY,
    property = "type",
    defaultImpl = Text.class
)
public abstract class MessageData {
    /** 是否持久化 */
    public boolean persistent() {
        return true;
    }
}
